﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="reasonManager.aspx.cs" Inherits="reasonManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>原因定义</title>
    <link href="css/shipping.css" rel="stylesheet" type="text/css" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/cs.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="60%" align="left" valign="top">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="1"
                        CellSpacing="1" BorderWidth="0px" BackColor="#C6D5DC" CssClass="biaoresult" AllowPaging="True"
                        OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="20" OnRowCommand="GridView1_RowCommand">
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <Columns>
                            <asp:BoundField DataField="id" HeaderText="ID" />
                            <asp:BoundField DataField="reason_name" HeaderText="原因" ItemStyle-Width="300px" />
                            <asp:BoundField DataField="reason_type" HeaderText="类型" ItemStyle-Width="100px" />
                            <asp:BoundField DataField="disp_order" HeaderText="显示顺序" />
                            <asp:TemplateField HeaderText="" ShowHeader="False">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButtonEdit" runat="server" CausesValidation="False" Text="修改"
                                        CommandArgument='<%# Eval("id") %>' CommandName="command_edit"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="" ShowHeader="False">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButtonDel" runat="server" CausesValidation="False" Text="删除"
                                        CommandArgument='<%# Eval("id") %>' CommandName="command_del"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <br />
                    &nbsp;&nbsp;&nbsp;&nbsp;<asp:LinkButton ID="LinkButtonAdd" runat="server" CausesValidation="False"
                        Text="新增" OnClick="LinkButtonAdd_Click"></asp:LinkButton>
                </td>
                <td align="left" valign="top">
                    <asp:Panel ID="PanelInput" runat="server">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="25%">
                                    ID:</td>
                                <td>
                                    <asp:Label ID="LabelID" runat="server"></asp:Label>
                                    <asp:TextBox ID="TextBoxCommandType" runat="server" Visible="false"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    原因:</td>
                                <td>
                                    <asp:TextBox ID="TextBoxReasonName" runat="server" CssClass="input"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    类型:</td>
                                <td>
                                    <asp:DropDownList ID="DropDownListReasonType" runat="server">
                                        <asp:ListItem>入库原因</asp:ListItem>
                                        <asp:ListItem>出库原因</asp:ListItem>
                                        <asp:ListItem>退货原因</asp:ListItem>
                                    </asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td>
                                    显示顺序:</td>
                                <td>
                                    <asp:TextBox ID="TextBoxDispOrder" runat="server" CssClass="input" Width="15"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:Button ID="ButtonSubmit" runat="server" OnClick="ButtonSubmit_Click" Text="保存"
                                        CssClass="button" /></td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
